home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CMCD0704.ISO / Software / Shareware / Comunicatii / feedaemon / fd110rc5.exe / {app} / Data / defaults / styles / Popbox Blue.fdxsl < prev    next >
Extensible Markup Language  |  2004-05-24  |  3KB  |  91 lines

  1. <?xml version="1.0"?>
  2.  
  3. <xsl:stylesheet version="1.0"
  4.     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  5.     xmlns:fd="http://www.bradsoft.com/feeddemon/xmlns/1.0/">
  6. <xsl:output method="html"/>
  7.  
  8. <xsl:template match="newspaper">
  9.     <html>
  10.     <head>
  11.         <title>Newspaper</title>
  12.         <style type="text/css">
  13.             body {
  14.                 font-size: 100%;
  15.                 font-family: Georgia, serif;
  16.                 margin: 0;
  17.                 color: #002C4F;
  18.                 background-color: #A4D7FF;
  19.                 padding: 20px 28px; 
  20.                 filter: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#DDF0FF,endColorStr=#2DA3FF);
  21.             }
  22.             a { color: #002C4F; }
  23.             a:hover { text-decoration: underline; }
  24.             span.nodescription {    font-size: x-small; color: navy;}
  25.             div.newspapertitle { text-transform: uppercase; font-weight: bold; font-size: 130%; margin-bottom: 20px;}
  26.             div.newsitem {width: 100%; margin-bottom: 24px; margin-top: 16px }
  27.             div.newsitemdateline { font-size: x-small; font-style: italic; }
  28.             div.newsitemtitlebox {
  29.     padding: 12px 14px;
  30.     float: right;
  31.     border: 1px solid #006FC6;
  32.     border-right-width: 3px;
  33.     border-bottom-width: 3px;
  34.     margin-left: 18px;
  35.     margin-bottom: 8px;
  36.     text-align: right;
  37.     width: 45%;
  38.     background-color: #D9EDFF;
  39. }
  40.             div.newsitemtitlebox a { text-decoration: none; }
  41.             div.newsitemtitle { font-weight: bold; border-bottom: 1px dotted #0074CE; padding-bottom: 8px; margin-bottom: 4px;} 
  42.             div.newsitemcontent { line-height: 140%;  }
  43.             hr.newsitembreak { color: #0074CE; height: 1px; }
  44.         </style>
  45.     </head>
  46.     <body>
  47.     <div class="newspapertitle">
  48.         <xsl:value-of select="title" disable-output-escaping="yes"/>
  49.     </div>
  50.     <xsl:variable name="newspapertype" select="@type"/>
  51.     <xsl:for-each select="channel/item">
  52.         <xsl:sort select="title"/>
  53.         <div class="newsitem">
  54.             <div class="newsitemtitlebox">
  55.                <div class="newsitemtitle">
  56.                     <xsl:variable name="itemlink" select="link"/>
  57.                    <a href="{$itemlink}"><xsl:value-of select="title" disable-output-escaping="yes"/></a>
  58.                 </div>
  59.                 <div class="newsitemdateline">
  60.                     <xsl:variable name="srclink" select="source/@htmlUrl"/>
  61.                     <a href="{$srclink}"><xsl:value-of select="source"/></a>
  62.                     <br /><xsl:value-of select="fd:dateDisplay"/>
  63.                     <!-- add link to comments if available -->
  64.                     <xsl:if test="comments">
  65.                         <xsl:variable name="commentlink" select="comments"/>
  66.                         <xsl:variable name="commentimg" select="'$IMAGEDIR$comments.gif'"/>
  67.                         | <a href="{$commentlink}"><img src="{$commentimg}" border="0" align="absmiddle" hspace="6"/></a>
  68.                     </xsl:if>
  69.                     <!-- add link to enclosure if available -->
  70.                     <xsl:if test="enclosure">
  71.                         <xsl:variable name="enclosurelink" select="enclosure/@url"/>
  72.                         <xsl:variable name="enclosureimg" select="'$IMAGEDIR$enclosure.gif'"/>
  73.                         | <a href="{$enclosurelink}"><img src="{$enclosureimg}" align="absmiddle" border="0" hspace="6"/></a>
  74.                     </xsl:if>
  75.                         
  76.                     </div>
  77.                 </div>            
  78.                 <div class="newsitemcontent">
  79.                     <xsl:value-of select="description" disable-output-escaping="yes"/>
  80.                 </div>
  81.             </div>
  82.             <xsl:if test="$newspapertype != 'newsitem'">
  83.                 <hr class="newsitembreak" />
  84.             </xsl:if>            
  85.         </xsl:for-each>
  86.     </body>
  87.     </html>    
  88. </xsl:template>
  89.  
  90.  
  91. </xsl:stylesheet>